package com.ftg.learn.buke;

/**
 * 人
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/8/14 17:47
 */

public class Pepole {
    int age;
     public int getAge(){
         return age;
     }
     public void setName(int age){
         if(age>=18&&age<=50){
             this.age=age;
         }else {
             System.out.println("最高");
             this.age=age;
         }

     }
}
